package com.baidu.day03;

import java.io.File;

public class Demo03 {
    public static void main(String[] args) {
        String path = "C:\\Users\\14288\\Desktop\\a\\c.txt";
        File file = new File(path);
        //获取父路径
        String parent = file.getParent();
        System.out.println(parent);
    }
}
